package com.jiazhong.basic.shuxin.thread;

public class DemoD1 implements Runnable{

    private DemoD d;

    public DemoD1(DemoD d) {
        this.d = d;
    }

    @Override
    public void run() {
        for (int i = 1; i < 11; i++) {
            d.changeCount();
        }
    }
}
